import request from '@/utils/request.js'

/**
 * 登录测试
 */
export function login(data) {
    console.log('发送登录请求，数据:', data);
    return request({
        url: '/auth/login',
        method: 'POST',
        headers: {
            //需要加密的请求在头部塞入标识
            isEncrypt: true
        },
        data: data
    })
}